Python:我如何告诉 matplotlib 我已经完成了绘图? |
您所在的位置:网站首页 › matplotlib clear › Python:我如何告诉 matplotlib 我已经完成了绘图? |
以下代码绘制到两个PostScript (.ps) 文件,但第二个文件包含两行。 import matplotlib import matplotlib.pyplot as plt import matplotlib.mlab as mlab plt.subplot(111) x = [1,10] y = [30, 1000] plt.loglog(x, y, basex=10, basey=10, ls="-") plt.savefig("first.ps") plt.subplot(111) x = [10,100] y = [10, 10000] plt.loglog(x, y, basex=10, basey=10, ls="-") plt.savefig("second.ps")我怎样才能告诉 matplotlib 重新开始第二个情节? |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |